package top.opm.entity;


import io.swagger.annotations.ApiModelProperty;
import jdk.nashorn.internal.runtime.logging.Logger;
import lombok.Data;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.UpdateTimestamp;

import javax.persistence.*;
import java.sql.Date;

@Logger
@Data
@Entity
@Table(name = "windowserver")
public class WindowsServer {
    @Id
    @SequenceGenerator(name = "window_server_id", sequenceName = "window_server_id", allocationSize = 1)
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "window_server_id")
    private Integer id;
    @Column
//    @ApiModelProperty(value = "服务器名称 ",name = "name",required = true)
    private String name;
    @Column
//    @ApiModelProperty(value = "状态 ",name = "status",required = false)
    private String status;
    @Column
//    @ApiModelProperty(value = "状态 ",name = "patchStatus",required = false)
    private String patchStatus;
    @Column
//    @ApiModelProperty(value = "tomcat名称 ",name = "tomcatName",required = true)
    private String projectName;
    @Column
//    @ApiModelProperty(value = "tomcat名称 ",name = "tomcatName",required = true)
    private String tomcatName;
    @Column
    private String tomcatPort;
    @Column
    @ApiModelProperty(value = "tomcatPath",name = "tomcatPath",required = true)
    private String tomcatPath;
    @Column
    @ApiModelProperty(value = "tomcatWebappName ",name = "tomcatWebappName",required = true)
    private String tomcatWebappName;
    @Column
//    @ApiModelProperty(value = "服务器iP ",name = "ip",required = true)
    private String ip;
    @Column
    private String port;

    @Column
    private String uploadPatchPath;
    @Column
    private Integer uploadPatchStatus;
    @Column
    @CreationTimestamp
    private Date createDate;
    @Column
    @UpdateTimestamp
    private Date updateDate;
    @Column
    private Date startDate;
    @Column
    private String userName;
    @Column
    private String passWord;


}
